/**
 * 用户信息
 */
export type IUserInfoVo = {
  userId: number
  name: string
  avatar: string
  phone: string
  companyName?: string
  gender?: string
  position?: string
}

/**
 * 登录返回的信息
 */
export type IUserLogin = {
  userId: number
  name: string
  phone: string
  token: string
  access_token?: string
  companyName?: string
  avatar: string
}

/**
 * 上传成功的信息
 */
export type IUploadSuccessInfo = {
  fileId: number
  originalName: string
  fileName: string
  storagePath: string
  fileHash: string
  fileType: string
  fileBusinessType: string
  fileSize: number
}
/**
 * 更新用户信息
 */
export type IUpdateInfo = {
  userId: number
  name: string
  avatar: string
}

/**
 * 普通登录参数
 */
export type ILoginParams = {
  phone: number | string
}

/**
 * 微信登录参数
 */
export type IWxLoginParams = {
  code: number | string
  iv?: string
  encryptedData?: string
  wxCode?: string
}
